1. Create a project
Open vs2010, select File> New> Project, and create an ASP. NET mvc3 web application.ProgramHere, I name it blog.
2. Compile entity classes
For a blog, several classes should be required:
Post blogArticleClass
Comment comments and post are one-to-many relationships
CATEGORY Directory class, which has one-to-many relationship with post
Tag tag class, which is a many-to-many relationship with post
Friendlink li
Oecms storage type xss
The file access is not verified, and one of the parameters is escaped at the end. After reading a lot of websites using oecms, the xss is also convenient to use and directly post data, the front-end is directly triggered, and no csrf processing is performed on the backend, which increases the xss power.
There are two causes for xss:(1) problems with file access verification under admincp(2) There is a parameter to start filtering, and then use stripslashes to restore it.Th
Because of the protection of data in ASP. 2, the request is post by default, so it is required to post requests when the front-end is requestedAction method: Public jsonresult getpersoninfo () { varnew { " Zhang San ", A , " male " }; return Json (person); }Front-End Request code:$.ajax ({ "/friendlink/getperso
The global tag text tutorial used in the dedecms template. If this official template is too abstract, you can refer to: parsing engine overview template design specification code reference tag reference: arclist (artlist, likeart, hotart, imglist if the official template explanation is too abstract, refer:
Parsing engine overview template design specification code reference
Reference: arclist (artlist, likeart, hotart, imglist, imginfolist, coolart, specart) field channel mytag v
If the official template is too abstract, refer:Parsing engine overview template design specification code referenceReference: arclist (artlist, likeart, hotart, imglist, imginfolist, coolart, specart) field channel mytag vote friendlink mynews loop channelartlist page list pagelist pagebreak fieldlist--------------------------------------------------------------------------------1. Introduction to zhimeng template parsing EngineBefore learning about
The global tag text tutorial used in the dedecms template. if this official template is too abstract, refer:
Parsing engine overview template design specification code reference
Reference: arclist (artlist, likeart, hotart, imglist, imginfolist, coolart, specart) field channel mytag vote friendlink mynews loop channelartlist page list pagelist pagebreak fieldlist
-------------------------------------------------------------------------
ArticleDirectory
1. Create a project
2. Compile entity classes
3. Add efcodefirst
4. Configuration
5. Test the knife
6. After the model is modified, the data table is automatically updated.
7. Write at the end
Source code download
1. Create a project
Open vs2010, select File> New> Project, and create an ASP. NET mvc3 web application.ProgramHere, I name it blog.
2. Compile entity classes
For a blog, several classes should be required:
Post blog artic
Parsing engine Overview Template Design specification code reference
Tag reference: Arclist (artlist,likeart,hotart,imglist,imginfolist,coolart,specart) field channel MyTag vote Friendlink Mynews Loop channelartlist Page List pagelist pagebreak fieldlist
First, the Weaving Dream Template Parsing engine overview Before you know the template code for DEDECMS, it makes sense to know the knowledge of the dream templating engine. Weaving dream template en
If this official template explanation looks too abstract, you can refer to:
Parsing engine Overview Template Design specification code reference
Tag reference: Arclist (artlist,likeart,hotart,imglist,imginfolist,coolart,specart) field channel MyTag vote Friendlink Mynews Loop channelartlist Page List pagelist pagebreak fieldlist
--------------------------------------------------------------------------------
I. Weaving dream template p
The version number in the hbm. xmlnhib.pdf file may cause problems.
In this example, 2.2 indicates that the version number of the nhibernate must be consistent with the version number of the nhibernate product you have installed. otherwise, for example urn: nhibernate-mapping-2.0, the following error occurs: cocould not find schema information for the element 'urn: nhibernate-mapping-2.0: hibernate-ing '. or: "nhib.pdf. cfg. an exception is thrown when the type of environment is set to an item "
If this official template explanation looks too abstract, can refer to:Parsing engine Overview Template Design specification code referenceTag reference: Arclist (artlist,likeart,hotart,imglist,imginfolist,coolart,specart) field channel MyTag vote Friendlink Mynews Loop channelartlist Page List pagelist pagebreak fieldlist--------------------------------------------------------------------------------First, dream-weaving template resolution engine ove
Parsing engine overview template design specification code reference
Reference: arclist (artlist, likeart, hotart, imglist, imginfolist, coolart, specart) field channel mytag vote friendlink mynews loop channelartlist page list pagelist pagebreak fieldlist
I. zhimeng template parsing engine overview before learning about the template code of DedeCms, it is very meaningful to understand the knowledge of zhimeng template engine. The zhimeng template en
Parsing engine Overview Template Design specification code referenceTag reference: Arclist (artlist,likeart,hotart,imglist,imginfolist,coolart,specart) field channel MyTag vote Friendlink Mynews Loop channelartlist pagelist pagelist pagebreak fieldlistFirst, the Weaving Dream Template Parsing engine overview Before you know the template code for DEDECMS, it makes sense to know the knowledge of the dream templating engine.CharacterNo.,Such asChangeAmou
Dedecms template creation usage analysis engine overview template design specification code reference
Reference: arclist (artlist, likeart, hotart, imglist, imginfolist, coolart, specart) field channel mytag vote friendlink mynews loop channelartlist page list pagelist pagebreak fieldlist
I. Zhimeng template parsing engine overview before learning about the template code of DedeCms, it is very meaningful to understand the knowledge of Zhimeng templat
CSS naming rules and how to name CSS naming rules
CSS naming rules
Header: header
Content: content/containe
End: footer
Navigation: nav
Sidebar: sidebar
Column: column
Overall Layout width of the page peripheral control: wrapper
Left and rightRightCenter
Logon entry: loginbar
Logo: logo
Advertisement: banner
Page subject: main
Hotspot: hot
News: news
Download: download
Subnavigation: subnav
Menu: menu
Sub menu: submenu
Search: search
Link: friendlink
MVC default Request mode is Post.ActionPublic Jsonresult Getpersoninfo (){var person = new{Name = "Zhang San",Age = 22,Sex = "Male"};return Json(person);}OrPublic Jsonresult Getpersoninfo (){return Json (new{Name = "Zhang san", age = 22,sex = "Male"});}View$.ajax ({URL: "/friendlink/getpersoninfo",Type: "POST",DataType: "json",Data: {},Success:function (data) {$ ("#friendContent"). HTML (data. Name);}})There is no problem with the POST request, the GE
Parsing engine Overview Template Design specification code reference
Tag reference: Arclist (artlist,likeart,hotart,imglist,imginfolist,coolart,specart) field channel MyTag vote Friendlink Mynews Loop channelartlist Page List pagelist pagebreak fieldlist
The Dream template parsing engine overview Before you know Dedecms's template code, it makes sense to understand the knowledge of a dream template engine. Dream-Weaving template engine is a template
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.